package com.sand.feign;

import com.sand.entity.conclude.contract;
import com.sand.result.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("juao-merchant")
public interface merchantFeign {

    //查询权限
    @PostMapping("/merchant/permission")
    public ResponseResult<Integer> permission(@RequestBody Integer id);


    /**
     * 根据id查看合同
     */
    @PostMapping("/get")
    ResponseResult<contract> get(@RequestBody Integer id);

}
